package com.momo.hotel.service.impl;

import com.momo.hotel.dao.mapping.ext.TbBookRoomMapper;
import com.momo.hotel.dao.pojo.TbRoomBooktime;
import com.momo.hotel.dto.SearchHotels;
import com.momo.hotel.service.BookRoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BookRoomServiceImpl implements BookRoomService {

    @Resource
    TbBookRoomMapper tbBookRoomMapper;

    @Override
    public List<TbRoomBooktime> selectAllBook(SearchHotels searchHotels) {
        Integer roomId = searchHotels.getRoomId();
        List<TbRoomBooktime> tbRoomBooktimeList =  tbBookRoomMapper.selectById(roomId);
        return tbRoomBooktimeList;
    }
}
